
package se.sll.service.catalogue.offers.api.model;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.constraints.NotNull;
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;


/**
 * A Date Period Type
 * 
 */
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "start",
    "end"
})
public class DatePeriod {

    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("start")
    @NotNull
    private Date start;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("end")
    @NotNull
    private Date end;
    @JsonIgnore
    private Map<String, Object> additionalProperties = new HashMap<String, Object>();

    /**
     * 
     * (Required)
     * 
     * @return
     *     The start
     */
    @JsonProperty("start")
    public Date getStart() {
        return start;
    }

    /**
     * 
     * (Required)
     * 
     * @param start
     *     The start
     */
    @JsonProperty("start")
    public void setStart(Date start) {
        this.start = start;
    }

    public DatePeriod withStart(Date start) {
        this.start = start;
        return this;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The end
     */
    @JsonProperty("end")
    public Date getEnd() {
        return end;
    }

    /**
     * 
     * (Required)
     * 
     * @param end
     *     The end
     */
    @JsonProperty("end")
    public void setEnd(Date end) {
        this.end = end;
    }

    public DatePeriod withEnd(Date end) {
        this.end = end;
        return this;
    }

    @JsonAnyGetter
    public Map<String, Object> getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public DatePeriod withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}
